﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class TaxRateMap : ClassMap<TaxRate>
    {
        public TaxRateMap()
        {
            Table("TAX_RATE");
            Id(x => x.TaxRateId, "TAX_RATE_ID").GeneratedBy.Identity();

            Map(x => x.TaxRateStartDate, "TAX_RATE_START_DATE");
            Map(x => x.TaxRateEndDate, "TAX_RATE_END_DATE");
            Map(x => x.TaxRateRatePercent, "TAX_RATE_RATE_PERCENT");
        }
    }
}
